package behavior.command;

/**
 * @author lzp
 * @Date:2023/2/27
 * @description: 粘贴命令
 */
public class PasteCommand implements Command{

	/**
	 * 真正的执行者
	 */
	private TextEditor receiver;

	public PasteCommand(TextEditor receiver) {
		this.receiver = receiver;
	}

	@Override
	public void execute() {
		receiver.paste();
	}
}
